package com.yp.studentsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yp
 * @since 2022-04-01
 */
public class RcClass extends Model<RcClass> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "class_id", type = IdType.AUTO)
    private Integer classId;

    private Integer classMajorId;

    private Integer classGrade;

    private String className;

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }
    public Integer getClassMajorId() {
        return classMajorId;
    }

    public void setClassMajorId(Integer classMajorId) {
        this.classMajorId = classMajorId;
    }
    public Integer getClassGrade() {
        return classGrade;
    }

    public void setClassGrade(Integer classGrade) {
        this.classGrade = classGrade;
    }
    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    protected Serializable pkVal() {
        return this.classId;
    }

    @Override
    public String toString() {
        return "RcClass{" +
            "classId=" + classId +
            ", classMajorId=" + classMajorId +
            ", classGrade=" + classGrade +
            ", className=" + className +
        "}";
    }
}
